<!doctype html>
<html lang="zh-Hans-CN">

<head>
    <meta charset="utf-8"/>
    <meta name="format-detection" content="telephone=no"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, viewport-fit=cover">
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <title>发生错误</title>
    <link rel="stylesheet" href="/ui/mobile/iconfont/iconfont.css">
    <link rel="stylesheet" href="/ui/mobile/css/ui.all.css"/>
    <link rel="stylesheet" href="/ui/mobile/css/style.css" type="text/css"/>
</head>

<body class="bgc-fff">
<div class="c-main">
    <div class="c-scence2">
        <p><i class="scence-nomess"></i></p>
        <p data-cont="msg" class="mt10"></p>
        <a data-btn="reload" href="javascript:" class="mt25 c-btn">刷新</a>
    </div>
</div>
<script type="text/javascript" src="/m/public/all.ui.js"></script>
<script src="/ui/mobile/iconfont/iconfont.js"></script>
<script src="/m/public/util.js"></script>

<script type="text/javascript">
    let {msg, back} = $.getPageParam();

    if(back){
        back = decodeURIComponent(back);
    }

    $('[data-cont="msg"]').text(msg || "页面出现错误");
    if (back) {
        try {
            history.pushState(null, null, back);
        } catch (e) {

        }
    }

    $('[data-btn="reload"]').on("click", () => {
        if (back) {
            location.href = back;
        } else {
            location.reload();
        }

    })

</script>

</body>
</html>